{* Import css and javascript here *}
<link rel="stylesheet" type="text/css" href="{$smarty.const.THEME_RELATIVE}modules/albummodule/css/album.css" />
<link rel="stylesheet" type="text/css" href="{$smarty.const.THEME_RELATIVE}modules/albummodule/css/artist_detail.css" />
<link rel="stylesheet" type="text/css" href="{$smarty.const.THEME_RELATIVE}modules/albummodule/css/top_rate.css" />  
<div class="albummodule">
	<div class='data'>
    <table border='0' cellpadding='0' cellspacing='0' width="100%">
        <tr>
            <td valign="top" width="120">
                  <img src={if $album->picpath != ""} "{$smarty.const.PATH_RELATIVE}phpThumb.php?src={$album->picpath}&w=100&h=120"  {else} "{$smarty.const.PATH_RELATIVE}phpThumb.php?src={$smarty.const.THEME_RELATIVE}images/album.jpg&w=115&h=115" {/if} class="image_115_llista" /> 
            </td>
            <td valign="top">
            <div class="album_name">
                <table border='0' cellpadding='0' cellspacing='0' width="100%">
                    <tr>
                        <td>
                          <a id="album_link_{$album->id}" href='{link action=view id=$album->id}'>
                          {$album->name}</a> - 
                          <span class="artist_name">
                {$album->publisher}                 		</span>
                        </td>
                        <td align="right">
                          <img src="{$smarty.const.THEME_RELATIVE}images/music000.png" alt="Songs" title="Songs" />
                                                    </td>
                    </tr>
               </table>
            </div>
            
            <div class="rating">
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                      {* Rating here *}
                        <td width="40%" align="left">
                          {foreach from=$album->rate item=rate}
                              <img src='{$smarty.const.THEME_RELATIVE}images/star{$rate}.png'>
                          {/foreach}
                        </td>
                    </tr>
                </table>                                	
            </div>

   <table cellpadding="0" cellspacing="0" width="100%"  class="details">
        <tr>
            <td valign="top" width="33%">
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td valign="top" class="label_detailed_album">
                        {$_TR.Released}                        </td>
                        <td valign="top" class="value_detailed_album">{$album->released}</td>
                    </tr>
                    <tr>
                        <td valign="top" class="label_detailed_album">
                        {$_TR.Format}                        </td>
                        <td valign="top" class="value_detailed_album">
                        {$album->format_text}
                        </td>

                    </tr>
                    <tr>
                        <td valign="top" class="label_detailed_album">
                        {$_TR.type}</td>
                        <td valign="top" class="value_detailed_album">
                        {if $album->album_type == 0}
                        {$_TR.type_christian}
                        {else}{$_TR.type_other}
                        {/if} </td>
                    </tr>
                </table>

            </td>
            <td valign="top" width="33%">
                <table cellpadding="0" cellspacing="0" width="100%">
                   <tr>
                        <td valign="top" class="label_detailed_album">
                        {$_TR.length}</td>
                        <td valign="top" class="value_detailed_album">
                        {duration duration=$album->length}</td>

                    </tr>
                    <tr>
                        <td valign="top" class="label_detailed_album">
                        {$_TR.n0_disk}</td>
                        <td valign="top" class="value_detailed_album">
                        {$album->n0_disk}</td>
                    </tr>
                    <tr>
                        <td valign="top" class="label_detailed_album">
                        {$_TR.songs}</td>
                        <td valign="top" class="value_detailed_album">
                        {$album->musics}</td>
                    </tr>
                </table>
            </td>

            <td valign="top" width="33%">
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td valign="top" class="label_detailed_album">
                        {$_TR.genre}</td>
                        <td valign="top" class="value_detailed_album">{$album->genre_text}</td>
                    </tr>

                    <tr>
                        <td valign="top" class="label_detailed_album">
                        {$_TR.price}</td>
                        <td valign="top" class="value_detailed_album">
                        {currency_symbol value=$album->price type=$album->currency_type}</td>
                    </tr>
                    <tr>
                        <td valign="top" class="label_detailed_album">
                        {$_TR.clicked}</td>
                        <td valign="top" class="value_detailed_album">
                        {$album->clicked}</td>
                    </tr>
                </table>
            </td>
            </tr>
            </table>
                        </td>
         </tr>
     </table>
</div>
</div>
